package com.wanbangee.marksystem.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Value;

import com.wanbangee.marksystem.entities.MObjectiveAnswer;
@Mapper
public interface MObjectiveAnswerDao {
	/**
	 * 查询客观题列表
	 * @return
	 */
	List<MObjectiveAnswer> selectMObjectiveAnswer(@Param("examId")Integer examId,@Param("examSubId")Integer examSubId);
	/**
	 * 更新客观题
	 * @param rightAnswer
	 * @param topicScore
	 * @param isGainScore
	 * @param gainScore
	 * @return
	 */
	boolean updateMObjectiveAnswer(@Param("rightAnswer")String rightAnswer,@Param("topicScore")Double topicScore,@Param("topicType")Integer topicType,@Param("isGainScore")Integer isGainScore ,@Param("gainScore")Double gainScore,@Param("topicNo")String topicNo,@Param("examId")Integer examId,@Param("examSubId")Integer examSubId);
}
